#include "lpc17xx_i2c.h"
//#include "lpc17xx_libcfg.h"
#include "lpc17xx_pinsel.h"
#include "debug_frmwrk.h"
#include "lpc17xx_gpio.h"
#include "api_lis3dh.h"
int16_t k;
int16_t x,y,z;
int c_entry(void)
{
	i2c_axel_init();
	set_4g();
	while(1)
	{
		get_x(&x);
		get_y(&y);
		get_z(&z);
	}
    while(1);
    return 1;
}

int main(void)
{
    return c_entry();
}


